<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">

    <h:body>
        <ui:composition template="/template/common/commonLayout.xhtml">
            <ui:define name="menu">
            </ui:define>

            <ui:define name="content">

                <h2><h:outputText value="ATM Authentication"/></h2>
                <br />
                <form method="POST" action="j_security_check">
                    <table>
                        <tr>
                            <td><h:outputText value="ATM Card: "/></td>
                            <td><input type="text"     name="j_username" /></td>
                        </tr>
                        <tr>
                            <td><h:outputText value="PIN: "/></td>
                            <td><input type="password" name="j_password" /></td>
                        </tr>
                    </table>
                    <br />
                    <br />
                    <br />

                    <input type="submit" value="Login" />
                    <input type="reset"  value="Reset" />
                </form>
                <br />
                <h:form>
                    New client? <h:commandLink value="Register" action="#{clientBean.add}" /> with the ATM.
                    <br />
                </h:form>
            </ui:define>
        </ui:composition>
    </h:body>
</html>

